using System;
using System.Globalization;
using System.Windows.Data;

namespace ibba.src.noriskbo.code.converter
{
    public class CategoriaConverter : IValueConverter
    {

        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {            
                switch ((string)value)
                {
                    case "A": return "Atual";

                    case "E": return "Em Apr.";

                    default: return (string)value;
                }
        }

        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            return value;
        }
    }
}
